<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:p="http://primefaces.org/ui">
    
    <ui:composition>        
        <p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>        
            <p:dialog modal="true" widgetVar="statusDialog" header="Status"   
            draggable="false" closable="false">                
                    <p:graphicImage value="/img/ajaxloadingbar.gif" />                  
            </p:dialog>        
    </ui:composition>

</html>
